﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Windows.Forms;
using BLLA;
using Help;
using System.IO;
using Model;

namespace HOST
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            host = new ServiceHost(typeof(WcfService.Service1));

            if (Help.ALL_DataV.BeganGO())
            {
                try
                {
                    host.Open();
                    label1.Text = "已开启";
                }
                catch (Exception ex)
                {
                    textBox1.Text = ex.Message;
                    label1.Text = "开启失败";
                }
                //kuayuHost.Open();
            }
            else
            {

            }
        }
        IBLL.IBLLSession bl = DI.SpringHelper.GetObject<IBLL.IBLLSession>("BLLSession");
        // IBLL.IBLLSession bl = new BLLA.BLLSession();
        ObjectSerialize os = new ObjectSerialize();
        DataResult result = new DataResult();
        ServiceHost host = new ServiceHost(typeof(WcfService.Service1));
        //为支持跨域访问建立一个支撑主机
        //ServiceHost kuayuHost = null;
        // public static IBLL.IBLLSession BLLSession = DI.SpringHelper.GetObject<IBLL.IBLLSession>("BLLSession");
        private void button1_Click(object sender, EventArgs e)
        {
            //string aa = bl.IOrder_DishesType_TBLL.Get_DishesType("", 1);Get_Order_DishesType
            //string bb = bl.IOrder_DishesType_TBLL.Get_Order_DishesType();
            //string cc = bl.IOrder_DishesType_TBLL.Get_Order_DishesType_PC("", 1);
            //string dd = bl.IOrder_DishesType_TBLL.Get_Order_DishesType_PC_T("32", "", 1);
            //string ee = bl.IOrder_Dishes_TBLL.Get_Order_Dishes("", 1);    
            //string ff = bl.IOrder_Dishes_TBLL.GetOrder_DishesByDY("139", "", 1);
            //string gg = bl.IOrder_Dishes_TBLL.UpdateOrder_Dishes_Up(1, "110,112", 1);
            //string  hh= bl.IOrder_Dishes_TBLL.UpdateOrder_Dishes_Down(1, "110,112", 1);
            //string ii = bl.IOrder_Dishes_TBLL.UpdateOrder_Dishes_Del(1, "117,208", 1);            
            //string jj = bl.IOrder_Dishes_TBLL.Get_Order_DishesList("10", "", 1);
            //string kk = bl.IOrder_Dishes_TBLL.Get_Order_DishesByDishesID("241", "", 1);
            //string ll = bl.IOrder_DishesType_TBLL.Get_Order_DishesTypeByPantID("1", "", 1);
            //string mm = bl.IOrder_DishesType_TBLL.Get_Order_DishesTypeByDishesTypeID("2", "", 1);
            //string nn = bl.IOrder_DishesType_TBLL.UpdateDishesTypeSort(1, "1", 2, 1);
            //string oo = bl.IOrder_Dishes_TBLL.GetDishesList("", "", 1);
            string pp = bl.IOrder_Carousel_TBLL.GetOrder_DishesCarousel("", 1);
            string rr = bl.IOrder_Dishes_TBLL.GetDishesGoods("", 1);
            //string ss = bl.IOrder_ShoppingCar_TBLL.Order_ShoppingCar_Add(1, "275", "", 1);
            //string tt = bl.IOrder_ShoppingCar_TBLL.Order_ShoppingCar_Update("1", 5, "", 1);
            //string uu = bl.IOrder_ShoppingCar_TBLL.Order_ShoppingCar_Del("5,6", "", 1);
            //string vv = bl.IOrder_ShoppingCar_TBLL.Get_Order_Dishes_ShoppingCar(1, "", 1);
            //string ww = bl.IOrder_Information_TBLL.Get_Order_Information("", 1);
            //string yy = bl.IUser_District_TBLL.Get_User_Districts();
            //string zz = bl.IUser_District_TBLL.Get_User_DistrictsByDistrictID("000001", "", 1);
            //string xx = bl.IUser_District_TBLL.SetUser_District(1, "{\"ID\":null,\"DistrictID\":\"000004\",\"DistrictName\":\"创新路32号\",\"DelFormMon\":10,\"DistrictState\":1}", 1, "", 1);
            //string xx = bl.IUser_District_TBLL.Get_User_DistrictsTwoByDistrictID("000");
            //string yy = bl.IUser_District_TBLL.Get_User_DistrictsThreeByDistrictID("000002");GetAllUserSendAddr
            //string xx = bl.IOrder_UserSendAddrBLL.GetAllUserSendAddr("oqxe8uLl88sAjplcKGh8pbm8lLmA", 77, "", 1);
            //string xx = bl.IOrder_UserSendAddrBLL.GetAllUserSendAddr("oqxe8uLl88sAjplcKGh8pbm8lLmA", 77, "", 1);
            //string xx = bl.IOrder_Form_TBLL.UpdateFormIsPay(2052, "", 1);

            //bl.IOrder_Form_TBLL.ClearForm();
            //Model.Order_UserSendAddr dr = new Model.Order_UserSendAddr();
            //dr.AddId = 24;
            //dr.AddrContent = "123123";
            //dr.Name = "333";
            //dr.OpenId = "1";
            //dr.TelNum = "13844566995";
            //string bbb = os.StringOfObject(dr, 1);
            // string zzzzz = bl.IOrder_UserSendAddrBLL.SetUserSendAddr(textBox1.Text,1, "", 1);
            // string az = bl.IOrder_MerSendAdd_TBLL.GetAllMerSendAdd(1, 100, "", 1);
            // string bbbcvbxcx=    bl.IOrder_Form_TBLL.GetNewOrderIdByPS(1075, "", 1);
            //bl.IOrder_Form_TBLL.CountPs("6", "1A02,1B06", "20160710", "20160715", "", 1);
            //FileStream fs = new FileStream(@"C:\2.jpg", FileMode.Open, FileAccess.Read);
            //try
            //{
            //    byte[] buffur = new byte[fs.Length];
            //    fs.Read(buffur, 0, (int)fs.Length);
            //    bl.IOrder_Mer_TBLL.UpdateMerPhoto("10", buffur, "", 1);
            //}
            //catch (Exception ex)
            //{

            //}
            //finally
            //{
            //    if (fs != null)
            //    {
            //        //关闭资源  
            //        fs.Close();
            //    }
            //}
            // 
            // textBox2.Text=  bl.IOrder_Form_TBLL.ReBookOrder(1080, "21", 2, "", 1);

            //bl.IOrder_Form_TBLL.updFormBY(16,"134000052", "", 1);
            //bl.IOrder_FormControl_TBLL.GetFromConID(377, "",1, "", 1);                                
            //bl.IOrder_UserWalt_TBLL.GetUserWalt(38, "", 1);
            //bl.IOrder_Organization_TBLL.OrgLogin("ZBZH","123456","",1);
            //string s = bl.IOrder_FlowPay_TBLL.GetOrder_FlowPayByPara(1, 10, "", "", "", "", "", "", "20161222", "", 1);

            //bl.IOrder_UserWalt_TBLL.GetOrder_UserWalt("",1);
            //bl.IOrder_Form_TBLL.singlePay(105, 1, "2", "", 1);
            //bl.IView_Order_FormBLL.getOrderDetailByOrderID(139, "", 1);
            //string[] i = {"3" };
            // bl.IOrder_Eva_TBLL.AddOrderEva("386",null,"123456abc",5,"",1);
            //bl.IOrder_Eva_TBLL.AddOrderEva("21", i, "", 2, "", 1);
            //bl.IOrder_DayReport_Mer_TBLL.GetDayReport_Dishes("2", "", "20170701", "20170801", "", 1);
            //bl.IOrder_DayReport_Mer_TBLL.DayReport_Mer_T();
            //bl.IOrder_DayReport_Mer_TBLL.DayReport_DishesType_T();
            //bl.IOrder_DayReport_Mer_TBLL.DayReport_Dishes_T();
            //bl.IOrder_MerAccount_TBLL.CloseAccout();

            //bl.IOrder_Form_TBLL.FeatchIspy(120, "", 1);
            //textBox2.Text = bl.IView_Order_DishesTypeBLL.GetOrder_DishesType("122", "", 1);
            //Form2 fm = new Form2();
            //fm.Show();
            //Model.View_SysOperationFlowInfo dd = new Model.View_SysOperationFlowInfo();
            //string zz = bl.IView_UserBLL.GetUserInfoFromDepID("000002001", "", 1);
            // byte[] ll = bl.IUser_Photo_TBLL.GetUserPhoto(3, "");
            //bl.IBasic_Region_TBLL.GetRegionList("110100", "", 1);
            //MemoryStream ms = new MemoryStream(ll);
            //System.Drawing.Image result = System.Drawing.Image.FromStream(ms);
            //pictureBox1.Image = result;
            //Model.Basic_Department_T dt = new Model.Basic_Department_T();
            //dt.DepLastTime = "000000"; dt.DepName = "基地组织学院"; dt.DepParentID = "000";
            //dt.DepState = 0;
            //Model.ParamObject pb = new Model.ParamObject();
            //pb.Tag = 2;
            //dt.DepID = "000002";
            //pb.Param = dt;
            //string zz=Newtonsoft.Json.JsonConvert.SerializeObject(pb);
            //bl.IBasic_Department_TBLL.UpdateDepatMent(zz, "", 1);
            //string a1 = bl.IUser_Contact_TBLL.UpDateUser_Contact(textBox1.Text, "", 1);
            // string bz = bl.IView_UserBLL.GetUserInfo(1, "", 1);
            // string a = "lizhi";
            // string pw = "123";
            // string zz=  bl.IUser_Login_TBLL.UserLogin("mln", "mlnmln", "", 1);
            //string zz = bl.IBasic_Department_TBLL.GetDepatMent(1, "", 1);
            //  string z = bl.IBasic_Dict_TBLL.GetKey(29, "", 2);
            //tb_bx_user b = new tb_bx_user();
            //string zzzz=  b.WsbxLogin("1", "11111", null, 1);
            // string bb = b.WsbxQueryUserInfo(1, 1, 47, null, 1);
            //  string bz = b.WsbxReSetPWD("", null, 1);
            //  List<Model.SYSCONNCONFI> ls = BLLSession.ISYSCONNCONFIBLL.GetListBy(u => u.SYSCONNNUM == 1);
            //  // ls[0].CARDNUM++;
            //BLLSession.ISYSCONNCONFIBLL.Modify(ls[0], new string[] { "CARDNUM"});
        }

        private void button2_Click(object sender, EventArgs e)
        {
            //string str = bl.IOrder_FormControl_TBLL.GetOrder_FormLog(735, "", 1);
            //string str = bl.IOrder_Send_TBLL.GetOrder_SendByOperId(1, "2", "20160622", "20160702","", 1, 10, "", 1);
            //  byte[] bb = bl.IOrder_Mer_TBLL.GetPhoto("10", "", 1);
            // bl.IOrder_Dishes_TBLL.UpdatePhoto("10", bb,bb, "", 1);
            //string s = bl.IOrder_MerPricing_TBLL.GetDiscounts("6", "wxzf", 1, "", 1);
            // string s = bl.IOrder_Form_TBLL.GetFormByID(179, "", 1);
            //  string s = bl.IOrder_FormControl_TBLL.GetFromConID(18, "016001", 1,"", 1);
            //bl.IOrder_MerSetWxMess_TBLL.Set_MerWxID(textBox1.Text,2, "", 1);
            //bl.IOrder_UserInt_TBLL.SetOrder_UserInt(1, 1, "1B0003", "", -8, "加", "", 1);
            //string sbb = bl.IOrder_Mer_TBLL.GetShopList(1, 20, "", "", 0, 0, 0, "", 1);
            //bl.IOrder_Send_TBLL.SearchSend(1,"",1);
            //bl.IOrder_Send_TBLL.GetGrid_Wiew_Send(1, 10, "2", "了","12", "20160515", "20160516", "", 1);
            //bl.IOrder_Send_TBLL.GetOrder_SendList("1", "oqxe8uBN8uCuSGj78kkKvLaF1e-E", 1, 3, "", "", 0, "", 1);
            //string a = "{\"FormID\":\"114\",\"TakerID\":2,\"ConID\":102,\"LastUser\":1,\"LastTime\":\"20160413133917\",\"BZ\":null,\"SendState\":1}";
            //bl.IOrder_Send_TBLL.SetFormToTaker(a,2,"",1);
            //bl.IOrder_Taker_TBLL.GetOrder_Taker("1",0,1,10,"",1);
            //string a = "{\"FormID\":\"132\",\"TakerID\":2,\"ConID\":104,\"LastUser\":0,\"LastTime\":\"20160330093950\",\"BZ\":\"已取货\",\"SendState\":1}";
            //bl.IOrder_Send_TBLL.SetFormToTaker(a, 2, "", 1);
            //bl.IOrder_Send_TBLL.GetNextCon("132","102","",1);
            //bl.IOrder_Oper_TBLL.GetMer(1,"",1);
            //bl.IOrder_Send_TBLL.GetOrder_SendList("1", 1, 10, "", "", 1, "", 1);
            //bl.IOrder_Send_TBLL.GetOrder_SendTaker("123456", 1, 10, "", 1);
            //bl.IOrder_Send_TBLL.GetOrder_SendByOperId(1,1,10,"",1);
            //   bl.IOrder_Form_TBLL.SetOrder_Form(1, 2, "1485","1B06", "", "",1);
            // string a= bl.IOrder_Send_TBLL.GetOrder_SendByOperId(1,"",1);
            //bl.IOrder_MerAccount_TBLL.GetOrder_MerAccount(1,10,"3","",1);
            //string a = "{\"TakerID\":1,\"TakerName\":\"小直\",\"TakerPhone\":\"13321601217\",\"YZM\":\"SCY537504\",\"YZMTime\":\"20160323163112\",\"OperID\":1,\"IsWork\":1,\"TakerState\":1}";
            //bl.IOrder_Taker_TBLL.SetOrder_Taker(a, 2, "", 1);
            //
            //bl.IOrder_Int_TBLL.SetOrder_Int(1, textBox1.Text, 1, "", 1);
            // bl.IOrder_MerSetWxMess_TBLL.GetMerWxID("2", "", 1);
            // bl.IOrder_Shelves_TBLL.SetOrder_Shel("2", 98, "", 1);
            //bl.IOrder_Mer_TBLL.GetShelvesInfo("3","",1);
            //  string s=   bl.IOrder_Shelves_TBLL.SetOrder_Shelves(1, textBox1.Text, 2, "", 1);
            // bl.IOrder_FlowOrganization_TBLL.GetOrgListFromOrg(1, 10, 2, "", "", 2, "", 1);
            //bl.IOrder_UserWalt_TBLL.SetOrder_UserWalt(1, 1280, 2, "",1,  "金额冲正，冲正原因：123456789", "",1);
            //string[] s = { "11" };
            //int[] sl = { 5 };
            //bl.IOrder_Form_TBLL.CountDiscount(s, sl, "91","", 0, "", 1);
            //bl.IOrder_MerPricing_TBLL.CalcDiscount(s, sl, "2", "72",2, "", 1);
            //bl.IOrder_Mer_TBLL.GetShopInfo("175", "", 1);
            // bl.IOrder_OrganinztionCheckOutFlow_TBLL.FlatOrgFlow("33", 1, "", 1);
            //bl.IOrder_MerPricing_TBLL.SetOrder_MerPricing(1, textBox1.Text, 1, "", 1);
            //bl.IOrder_Key_TBLL.SetOrder_Key(1, textBox1.Text, 2, "", 1);
            //bl.IOrder_UserInt_TBLL.GetOrder_UserInt(1, 5, "0", "", 1);
            //bl.IOrder_FlowInt_TBLL.GetOrder_FlowInt(1,10,"1","",1);
            //bl.IOrder_MerAccount_TBLL.GetOrder_MerAccount(1, 10, "1", "", 1);
            //textBox1.Text = bl.IOrder_DishesType_TBLL.SetOrder_DishesType(1, textBox1.Text, 2, "", 1);
            //bl.IOrder_FlowOrganization_TBLL.GetOrgListFromMer(1, 10, "1", "", "",0, "", 1);
           //textBox1.Text = bl.IOrder_MerSendAdd_TBLL.GetAllAddByUser("", 1);
            //bl.IView_Order_FormBLL.GetOrder_Form(1, 10, "", "", "1A04", "10", "", 1);
            //    textBox1.Text = bl.IView_Order_FormBLL.GetOrder_Form(1, 5, "", "", "", "3", "", 1);
            //bl.IOrder_Form_TBLL.SetOrder_Form(1, 1, "1", 1, "", "", 1);
            //bl.IView_Order_OperationFlowInfoBLL.GetOrder_OperationFlow(1, 20, "", "", "1F0006", "", "", 1);
            //bl.IOrder_Mer_TBLL.GetShopInfo("1", "", 1);
            //bl.IOrder_Eva_TBLL.SetOrder_Eva(1, textBox1.Text, 2, "", 1);
            //bl.IOrder_OrganizationCheckOut_TBLL.CheckOut("1", 1, "20151222", "8000", 1, "", 1);
            bl.IOrder_Form_TBLL.GetOrder_Form_User(1, 10, "oqxe8uLl88sAjplcKGh8pbm8lLmA", 0, "", 1);


             //string sb =   bl.IOrder_Form_TBLL.BookOrder(textBox1.Text, "72", "", 1);
             //string xx =   bl.IOrder_Form_TBLL.BookOrder2(textBox1.Text, "wxzf", "", 1);
             bl.IOrder_Walt_TBLL.GetUserPayWalt(223, "2", "", 1);
            //bl.IOrder_OrganizationCheckOut_TBLL.CountCheckOut(1,10,"1", 1, "20151221", "", 1);
            //bl.IOrder_Mer_TBLL.GetShopInfo("2", "", 1);
            //bl.IOrder_Mer_TBLL.GetShopList(1, 20, "", "", 0, 0,0, "", 1);
            //bl.IOrder_Organization_TBLL.SetOrganizationLimit(1, 2, 800000, "", 1);
            //bl.IOrder_FlowOrganization_TBLL.GetOrgListFromOrg(1, 10, 1, "20151101120000", "20151201120000", "", 1);
            //bl.IOrder_OrganizationForm_TBLL.OrgBookOrder(textBox1.Text, "", 1);
            // Dictionary<string, string> Dic = new Dictionary<string, string>();
            // Dic.Add("OrgName", "1");
            //bl.IOrder_Organization_TBLL.GetOrgListForm(1,3, Dic, "", 1);
            // bl.IOrder_Organization_TBLL.SetOrganization(1, textBox1.Text, 2, "", 1);
            //Order_OrganizationCheckOut_T dd = new Order_OrganizationCheckOut_T(); 
            //DateTime bb = DateTime.Parse("2008-05-01 7:34:42");
            //bl.IUser_Login_TBLL.UpdataUserLogin(textBox1.Text, 2, "", 1);
            //Role_Info_T info = new Role_Info_T();
            ////string tt = info.GetRoleInfoList("", 1);
            //Model.Role_Info_T role = new Model.Role_Info_T();
            //role.RoleName = "应用管理员";
            //role.RolePower = "001001,002001";
            //role.RoleComponent = "@ZBUSER";
            //role.RoleType = 1;
            //string kk = os.JsonSerialize<Model.Role_Info_T>(role);
            //string res = info.UpdateRoleInfo(kk, 1, "",1);
            //View_SysOperationFlowInfo info = new View_SysOperationFlowInfo();
            //string tt = "{\"BTIME\":\"20150608000000\",\"ETIME\":\"20150620235959\",\"OperationFlowID\":null,\"OperationTitle\":null,\"OperationText\":null,\"OperationType\":null,\"OperationRes\":null,\"OperationUser\":1,\"OperationTime\":null,\"OperationBZ\":null,\"OperationYL\":null}";
            //string kk = info.GetOperationFlowInfo(tt, "", 1);
            //Sys_Key_T key = new Sys_Key_T();
            //key.UpdateSysKey("", "", 1);
            //User_Login_T user = new User_Login_T();
            //string tt = user.UserRegist("15278146108", "1095754572@qq.com", 2, "a", "1", "", 1);
            //Sys_Key_T key = new Sys_Key_T();
            //string t = "{\"ID\":1,\"AccKey\":0,\"OperKey\":0,\"OperationFlowKey\":null,\"RoleKey\":0,\"SystemKey\":\"gxdx\",\"SystemName\":\"101\",\"SystemTime\":\"2015622163027\",\"UserPhotoKey\":1,\"IsOpenReg\":1,\"RegDate\":1}";
            //string ii = key.UpdateSysKey(t, "", 1);

            //User_Login_T login = new User_Login_T();
            //login.MatchRegYZM("admin", "9941", "", 1);

            //Order_Mer_T order = new Order_Mer_T();
            //string kk = order.GetOrder_Mer("", 1);

            //Order_Dishes_T order = new Order_Dishes_T();
            //string tt = order.SetOrder_Dishes(1, "{\"DishesID\":null,\"DishesNmae\":\"鸡柳\",\"MerID\":\"1\",\"DishesTypeID\":null,\"DishesEnableInt\":0,\"DishesIsInt\":0,\"DishesMon\":22,\"DishesPay\":20,\"DishesVo\":0,\"DishesTxt\":null,\"DishesPic\":null,\"DishesEvaNun\":0,\"DishesEvaTxt\":0,\"DishesEvaX\":0,\"DishesGood\":0,\"DishesTypeState\":0,\"IntBZ\":null}", 1, "", 1);

            //View_Order_Dishes order = new View_Order_Dishes();
            //string dd = order.GetOrder_Dishes("1","",1);

            //Order_Shelves_T order = new Order_Shelves_T();
            //string tt = order.SetOrder_Shelves(1, "{\"SheID\":3,\"MerID\":\"1\",\"SheName\":null,\"DishesID\":\"\",\"DishesNub\":\"\",\"SheDateB\":20150806,\"SheDateE\":20150831,\"SheTimeB\":\"0600\",\"SheTimeE\":\"0900\",\"MaDay\":0,\"MaTime\":\"不允许预约\",\"SheState\":0,\"BZ\":null}",3,"", 1);

            //Order_FlowMon_T order = new Order_FlowMon_T();
            //string kk = order.GetOrder_FlowMon("", 1);

            //Order_Eva_T order = new Order_Eva_T();
            //order.GetOrder_Eva("1", "", 1);
            //Order_Oper_T order = new Order_Oper_T();
            //string k = order.SetMerOperID(1,"{\"OperID\":1,\"MerID\":\"1,12,13,16,17,10,11,14,15\"}","",1);

            //Order_Mer_T order = new Order_Mer_T();
            //string tt = "{\"DictName\":null,\"MerID\":null,\"MerName\":\"沙县小吃\",\"MerTxt\":\"全国连锁 沙县小吃\",\"MerAdr\":\"商业街\",\"MerCall\":\"12580\",\"MerPic\":null,\"MerDep\":\"000002\",\"MerSort\":null,\"IsRet\":0,\"LastChanMon\":null,\"OverChanMon\":null,\"DelMaxMon\":0.0,\"DelFormMon\":0.0,\"DelTime\":0,\"DelType\":\"1E0004\",\"MerState\":0,\"SalesCount\":0,\"EvaCount\":0,\"StarCount\":0,\"IsCashPay\":0} ";
            //string tt = "{\"DictName\":\"品牌快餐\",\"MerID\":\"89\",\"MerName\":\"xsy\",\"MerTxt\":null,\"MerAdr\":\"aaaaaaaaaa\",\"MerCall\":\"13737123456\",\"MerPic\":null,\"MerDep\":\"000\",\"MerSort\":\"1@\",\"IsRet\":0,\"LastChanMon\":\"1@0\",\"OverChanMon\":\"1@0\",\"DelMaxMon\":0.0,\"DelFormMon\":0.0,\"DelTime\":0,\"DelType\":\"1E0002\",\"MerState\":0,\"SalesCount\":0,\"EvaCount\":0,\"StarCount\":0,\"IsCashPay\":0}";
            //string kk = order.SetOrder_Mer(1, tt, 3, "", 1);
            ////string kk = order.GetOrder_Mer("", 1);
            //Order_UserInt_T order = new Order_UserInt_T();
            //string kk = order.GetOrder_UserInt("0","",1);
            //View_Order_OperationFlowInfo order = new View_Order_OperationFlowInfo();
            //order.GetOrder_OperationFlow("20150811","20150812","","","",1);
            //Order_Int_T order = new Order_Int_T();
            //string kk = "{\"IntID\":null,\"MerID\":\"1\",\"IntUn\":2,\"IntY\":2,\"IntChe\":1,\"IsOpen\":1,\"IntState\":0}";
            //string ss = order.SetOrder_Int(1,kk,1, "", 1);
            //Order_Pay_T order = new Order_Pay_T();
            //string kk = "{\"PayID\":null,\"PayOpen\":0,\"PayName\":\"测试\",\"PayBZ\":null}";
            //string dd = order.SetOrder_Pay_Key(1,kk,1,"",1);
            // Order_FlowInt_T order = new Order_FlowInt_T();
            // string kk = order.GetOrder_FlowInt("1","",1);

            //Order_MerPricing_T order = new Order_MerPricing_T();
            //string dd = order.SetOrder_MerPricing(1, "{\"PricID\":\"16\",\"MerID\":\"2\",\"IsOpen\":1,\"PricType\":0,\"PayID\":\"18\",\"IsFormMon\":1,\"IsPackMon\":1,\"IsMaxPric\":2000,\"IsFirstMon\":400,\"MonType\":1,\"PricMon\":3000,\"PricRem\":0,\"PricTxt\":null,\"PricState\":0}", 2, "", 1);

        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }

        private void button3_Click(object sender, EventArgs e)
        {
            //bl.IOrder_UserWalt_TBLL.GetOrder_UserWalt(1, 3, "", "", "", "", "", 1);
            // bl.IOrder_Walt_TBLL.GetUserPayWalt(231, "2", "", 1);
            //Order_Form_T a = new Order_Form_T();
            //string at = a.GetOrder_OpenIDSendList("oqxe8uHIdxmtRxqn0ABZZGIkxeP0", "", "1", 1, 0, "", "", "0", null, 1);
        }

        private void button4_Click(object sender, EventArgs e)
        {
            Form2 fm = new Form2();
            fm.Show();
        }
    }
}
